package com.hspedu.list_;

import java.util.ArrayList;
import java.util.Arrays;

/**
 * @Author Stringzhua
 * @Date 2024/7/11 18:07
 * description:
 */
public class ArrayListSourceTest {
    public static void main(String[] args) {
//        ArrayList list = new ArrayList();
        ArrayList list = new ArrayList(8);
//        ArrayList list1 = new ArrayList(Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16));
        for (int i = 0; i <= 12; i++) {
            list.add(i);
        }
        //12
//        list.addAll(list1);

        list.add(100);
        list.add(200);
        list.add(null);
    }
}
